/*
 * Copyright (C) hushenglan
 */

#include "mysys.h"

namespace mysys
{

/*
 * 构造函数
 */
CManageProcess::CManageProcess(void *args)
    :CProcess(manageProcessMain, args)
{
}

/*
 * 析构函数
 */
CManageProcess::~CManageProcess()
{
}

/*
 * main函数
 */
int CManageProcess::manageProcessMain(void *args)
{
    setAtexit(manageProcessAtexit);
}

/*
 * 进程退出时的动作
 */
void CManageProcess::manageProcessAtexit()
{
    MS_DEBUG("atexit -- process %d stop\n", getPid());
}

}
